package com.cmc6.role.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.Set;

/**
 * {@link com.cmc6.common.model.entity.RoleDO}
 */
@Data
public class RoleInsertOrUpdateDTO {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @NotBlank
    @ApiModelProperty(value = "角色名（不能重复）", required = true)
    private String name;

    @ApiModelProperty(value = "启用/禁用")
    private boolean enableFlag;

    @ApiModelProperty(value = "是否是默认角色，备注：只会有一个默认角色")
    private boolean defaultFlag;

    @ApiModelProperty(value = "菜单 idSet")
    private Set<Long> menuIdSet;

    @ApiModelProperty(value = "用户 idSet")
    private Set<Long> userIdSet;

    @ApiModelProperty(value = "描述/备注")
    private String remark;
}
